package edu.ahut.corejava;


import java.util.Arrays;

class Moon {
    private Moon() {
    }


    private static Moon instance = new Moon();


    public static Moon getInstance() {
        return instance;
    }

}


public class SingletonDemo {
    public static void main(String[] args) {
        Math math;
        Arrays array;
        Moon chinaMoon = Moon.getInstance();
        Moon usaMoon = Moon.getInstance();
        System.out.println(chinaMoon);
        System.out.println(usaMoon);
//        Calendar.getInstance();
//        Runtime.getRuntime();
//        Logger.getLogger();
    }
}
